package org.springframework.example.t0830.factory;

import org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.stereotype.Component;

@Component
public class AccountPostProcessor implements MergedBeanDefinitionPostProcessor {


	@Override
	public void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName) {
//		if(beanName.equals("userService")){
//			AccountService accountService = new AccountService();
//			System.out.println("后置处理="+accountService);
//			beanDefinition.getPropertyValues().add("accountService",accountService);
//		}
	}
}
